module.exports = {
    devServer: {
      proxy: {
        '/api': {
          target: 'http://localhost:3000', //目标地址
          changeOrigin: true,
          pathRewrite:{
              "^/api":"/api"
          }
        },
        '/uploads': {
          target: 'http://localhost:3000',  //图片上传地址
          changeOrigin: true,
          pathRewrite:{
              "^/uploads":"/uploads"
          }
        }
      }
    }
  }

